#include <iostream>
#include <vector>
#include <list>

using namespace std;

int main()
{
	int arrv[5] = {0,1,2,3,4};
	int arrl[5] = {0,1,2,3,4};

	vector<int> ivec(arrv,arrv+5);
	list<int> ilst(arrl,arrl+5);
	
	vector<int>::iterator vit=ivec.begin();
	list<int>::iterator lit=ilst.begin();

	while(vit!=ivec.end()&&lit!=ilst.end())
	{
		if(*vit!=*lit)
			break;
		++vit;
		++lit;
	}

	if(vit==ivec.end()&&lit==ilst.end())
		cout<<"yes"<<endl;
	else
		cout<<"no"<<endl;

	return 0;
}